Skip to content

Allow .0 when RegexMatch has a non-tuple Match. #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 16, 2022

Conversation

rxwei
Copy link
Contributor

@rxwei rxwei commented Feb 16, 2022

This is a hacky way of allowing the match result of a non-capturing regex to have a .0 member.

This is a hacky way of allowing the match result of a non-capturing regex to have a `.0` member.
@rxwei rxwei requested a review from milseman February 16, 2022 20:56
Copy link
Member

@milseman milseman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@milseman
Copy link
Member

@swift-ci please test linux platform

@natecook1000
Copy link
Member

This is lovely, in the spirit of UnboundedRange 💯

@rxwei rxwei merged commit a69c602 into swiftlang:main Feb 16, 2022
@rxwei rxwei deleted the match-dot-zero branch February 16, 2022 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants